import csv
import logging
from logging import config

from faker import Faker

like_host = "http://127.0.0.1:8081"

faker = Faker(locale='zh_CN')

#加载日志配置文件
config.fileConfig('resources/config/log.conf')
logger = logging.getLogger()



def getCsvData(path):
    with open(path, mode="r", encoding="utf-8") as cases:
        # 读取csv文件
        csv_reader = csv.reader(cases)

        caseList = []

        for index, row in enumerate(csv_reader, 1):
            if index > 1:
                caseList.append(row)
    return caseList
